﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for NewsControl
/// </summary>
public class NewsControl
{
	private NewsDAO _NewsDAO = new NewsDAO();

    public NewsControl()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public DataTable SelectNews()
    {
        return _NewsDAO.SelectNews();
    }

    public DataTable SelectNews(string str_Condition)
    {
        return _NewsDAO.SelectNews(str_Condition);
    }

    public DataTable SelectNews(string str_Col, string str_Table, string str_Condition)
    {
        return _NewsDAO.SelectNews(str_Col, str_Table, str_Condition);
    }

    public bool DeleteNews(NewsDTO _NewsDTO)
    {
        return _NewsDAO.DeleteNews(_NewsDTO);
    }

    public bool UpdateNews(NewsDTO _NewsDTO)
    {
        return _NewsDAO.UpdateNews(_NewsDTO);
    }

    public bool InsertNews(NewsDTO _NewsDTO)
    {
        return _NewsDAO.InsertNews(_NewsDTO);
    }
    
}
